package com.yiku.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * @Author:ludada
 * @Date:2024/02/29 10:36
 */
@Data
@ApiModel("U9C新增BOM母项请求类")
@Accessors(chain = true)
public class BOMCreateDAO {

        private List<BOMComponent> BOMComponents;
        @ApiModelProperty("母项")
        private Code ItemMaster;
        @ApiModelProperty("版本号")
        private String BOMVersionCode;
        @ApiModelProperty("生产目的 主制造：0")
        private int AlternateType = 0;
        @ApiModelProperty("批量")
        private int Lot = 1;
        @ApiModelProperty("生产单位")
        private Code ProductUOM;
        @ApiModelProperty("生效日期")
        private String EffectiveDate ;
        @ApiModelProperty("失效日期")
        private String DisableDate = "9999-8-31";
        @ApiModelProperty("从数量")
        private int FromQty = 0;
        @ApiModelProperty("到数量")
        private int ToQty = 0;
        @ApiModelProperty("主批量")
        private boolean IsPrimaryLot = true;
        @ApiModelProperty("状态")
        private int Status = 0;
        @ApiModelProperty("组织")
        private Code Org;
         @ApiModelProperty("货主组织")
        private Code OwnerOrg;



        @ApiModelProperty("分类")
        private int BOMSort = -1;
        @ApiModelProperty("定价方式")
        private int PriceStyle = -1;
        @ApiModelProperty("BOM类型 自制、委外")
        private int BOMType = 0;
        @ApiModelProperty("第三方id")
        private String OtherID = "1";
        @ApiModelProperty("值集")
        private DescFlexField DescFlexField ;


        @Data
        public static class DescFlexField{
                private String PrivateDescSeg1;
                private String PrivateDescSeg2;


        }


}
